{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf200
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset134 PingFangSC-Regular;\f2\froman\fcharset0 Times-Roman;
}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
\paperw11900\paperh16840\margl1440\margr1440\vieww28600\viewh18000\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 Nginx\
\
apt update\
apt install -y nginx\

\f1 \'d7\'a2\'d2\'e2\'b0\'b2\'d7\'b0
\f0 nginx
\f1 \'ca\'c7\'c4\'ac\'c8\'cf\'c6\'f4\'d3\'c3
\f0 80
\f1 \'b6\'cb\'bf\'da\'a3\'ac\'c8\'f4
\f0 80
\f1 \'b6\'cb\'bf\'da\'b1\'bb\'d5\'bc\'d3\'c3\'bf\'c9\'c4\'dc\'bb\'e1\'b5\'bc\'d6\'c2\'b0\'b2\'d7\'b0\'ca\'a7\'b0\'dc\'a1\'a3\'d4\'da\'b0\'b2\'d7\'b0\'c7\'b0\'d7\'a2\'d2\'e2\'cd\'a3\'d6\'b9\'c6\'e4\'cb\'fb\'c6\'f4\'d3\'c3
\f0 80
\f1 \'b6\'cb\'bf\'da\'b5\'c4\'b7\'fe\'ce\'f1\'a1\'a3
\f0 \
\
service nginx start\
service nginx stop\
service nginx restart\
\
nginx -t 
\f1 \'b2\'e2\'ca\'d4\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe
\f0 \
nginx -s reload 
\f1 \'d6\'d8\'d4\'d8\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\
nginx -V \'b2\'e9\'d1\'afnginx\'b0\'e6\'b1\'be\
\
\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\'a3\'ba\
\'d6\'f7\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\'a3\'ba\
vi /etc/nginx/nginx.conf\
\
\
Nxinx\'b7\'fe\'ce\'f1\'c6\'f7\'c5\'e4\'d6\'c3\'a3\'ba\
vi /etc/nginx/sites-enabled/default\
\'be\'df\'cc\'e5\'c5\'e4\'d6\'c3\'b7\'bd\'b7\'a8\'a3\'ba\
server \{\
	\'a1\'ad\'a1\'ad\
	location / \{\
		proxy_pass	http://\'b4\'fa\'c0\'ed\'b7\'fe\'ce\'f1ip:\'b6\'cb\'bf\'da;	\
	\}\
\}\
\'c5\'e4\'d6\'c3\'ba\'f3\'d0\'e8\'d2\'aa\'b2\'e2\'ca\'d4\'b2\'a2\'d6\'d8\'d4\'d8\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\
\
\'ca\'b9\'d3\'c3nginx\'b7\'b4\'cf\'f2\'b4\'fa\'c0\'ed\'b7\'c3\'ce\'ca\'cd\'f8\'d5\'be\'a3\'ba\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 upsteam backend \{\
	server	\'cd\'f8\'d5\'be\'ba\'f3\'cc\'a8\'cb\'f9\'d4\'da1\'ba\'c5\'b7\'fe\'ce\'f1\'c6\'f7ip:\'b6\'cb\'bf\'da	weight =2;\
	server	\'cd\'f8\'d5\'be\'ba\'f3\'cc\'a8\'cb\'f9\'d4\'da2\'ba\'c5\'b7\'fe\'ce\'f1\'c6\'f7ip:\'b6\'cb\'bf\'da weight =1;\
\}\
\
server \{\
	\'a1\'ad\'a1\'ad\
	location / \{\
		proxy_pass	http://backend;	\
	\}\
\}\
\'d2\'d4\'c9\'cfweight\'ce\'aa\'b7\'fe\'ce\'f1\'c6\'f7\'b7\'c3\'ce\'ca\'c8\'a8\'d6\'d8\'a3\'ac\'b8\'f9\'be\'dd\'b7\'fe\'ce\'f1\'c6\'f7\'d0\'d4\'c4\'dc\'c8\'b7\'b6\'a8\'a1\'a3\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 \
\

\f2 \cf2 \expnd0\expndtw0\kerning0
\

\f1 \cf0 \kerning1\expnd0\expndtw0 \
\
\
}